<?php
# autoHTML: the dynamic PHP5 library for fast website prototyping
# http://code.google.com/p/autohtml/
#
# Copyright (c) 2010, Shu Zong Chen
# http://freelanceDreams.com/
# All rights reserved. 
# 
# Redistribution and use in source and binary forms, with or without 
# modification, are permitted provided that the following conditions are met: 
# 
#  * Redistributions of source code must retain the above copyright notice, 
#    this list of conditions and the following disclaimer. 
#  * Redistributions in binary form must reproduce the above copyright 
#    notice, this list of conditions and the following disclaimer in the 
#    documentation and/or other materials provided with the distribution. 
#  * Neither the name of autoHTML nor the names of its contributors 
#    may be used to endorse or promote products derived from this software 
#    without specific prior written permission. 
# 
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' 
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
# POSSIBILITY OF SUCH DAMAGE.


# All files are relative to this file
$root_dir = dirname(__FILE__);

# This is a sample configuration file.  Please change these variables
# to match your preferences.
$autohtml_config = array();

######### THE FOLLOWING ARE FILESYSTEM PATHS ###############

# Location of autoHTML files
# e.g. autohtml.inc, autoquery.inc, functions.inc
//$autohtml_config['path_engine'] = $root_dir . DIRECTORY_SEPARATOR . 'engine';

# Root of asset files
//$autohtml_config['path_assets'] = $root_dir . DIRECTORY_SEPARATOR . 'assets';

######### THE FOLLOWING ARE WEB PATHS ######################

# Change this if site resides in subfolder
# e.g. '/mysite' for 'http://www.domain.com/mysite/'
//$autohtml_config['http_root'] = '/';

# Location of CSS files
//$autohtml_config['http_css'] = '/css';

# Location of JS files
//$autohtml_config['http_js'] = '/js';

//Default page layout|preferences
//$autohtml_config['layout_template'] = '1column.html';

# Default doctype
# Possible values: XHTML 1.0 STRICT, XHTML 1.0 TRANSITIONAL, XHTML 1.0 FRAMESET
# XHTML 1.1 DTD, HTML 4.01 STRICT, HTML 4.01 FRAMESET, HTML 4.01 TRANSITIONAL
//$autohtml_config['doctype'] = 'XHTML 1.0 STRICT';

# Attach headers
#  = true for normal websites
#  = false for headerless output (e.g., for AJAX or files to be included)
//$autohtml_config['attach_headers'] = true;

//Charset for output
//$autohtml_config['charset'] = 'utf-8';

$assets = array();
######### These define your asset resources ################
# DON'T COMMENT OUT MEMORY, unless you really know what you're doing
$assets[] = array('type'=>'memory');
# These are optional
//$assets[] = array('type'=>'filesystem', 'resource'=>'/filesystem/path');
//$assets[] = array('type'=>'sqlite', 'resource'=>'/path/to/sqlitefile.sqlite');
//$assets[] = array('type'=>'mysql', 'host'=>'hostname', 'user'=>'username', 'pass'=>'password');

######### Defaults are here below ##########################
$defaultconfig = array(
	'path_engine' => $root_dir . DIRECTORY_SEPARATOR . 'engine',
	'path_assets' => $root_dir . DIRECTORY_SEPARATOR . 'assets',
	'http_root' => '/',
	'http_css' => '/css',
	'http_js' => '/js',
	'layout_template' => 'templates/1column.html',
	'doctype' => 'XHTML 1.0 STRICT',
	'mysql' => false,
	'sqlite' => false,
	'autodata' => false,
	'attach_headers' => true,
	'charset' => 'utf-8'
);
$autohtml_config = array_merge($defaultconfig, $autohtml_config);
$autohtml_config['assets'] = $assets;